package com.flower.core_service.object.entity;

import cn.hutool.core.bean.BeanUtil;

public class Test {
    public static void main(String[] args) {
        AuthMenu authMenu = new AuthMenu();
        authMenu.setMeta("aaaa");
        AuthUser authUser = new AuthUser();
        AuthUser authUser1 = new AuthUser();
        authUser.setAuthMenu(authMenu);
        authUser1.setAuthMenu(authMenu);

        AuthUser copy = BeanUtil.copyProperties(authUser, AuthUser.class);
        AuthRole authRole = BeanUtil.copyProperties(authUser, AuthRole.class);
        authUser.getAuthMenu().setMeta("bbb");
        System.out.println(authRole.getAuthMenu().getMeta());


    }
}
